<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
$db['expressadjust_line']=array (
  'columns' =>
  array (  
    'id' =>
    array (
      'type' => 'int(10)',
      'required' => true,
      'pkey' => true,
      'extra' => 'auto_increment',
      'editable' => false,
      'label' => 'ID',
      'comment' => app::get('wms')->_('ID'),
    ),
    'delivery_bn' =>
    array (
      'type' => 'varchar(32)',
      'required' => true,
      'label' => '发货单号',
      'comment' => '配送流水号',
      'editable' => false,
      'width' =>140,
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'delivery_id' =>
    array (
      'type' => 'table:delivery@wms',
      'required' => true,
      'default' => 0,
      'editable' => false,
    ),
    'item_id' =>
    array (
      'type' => 'number',
      'required' => true,
      'default' => 0,
      'editable' => false,
    ),
    'expressadjust_id' =>
    array (
      'type' => 'table:expressadjust@wms',
      'required' => true,
      'default' => 0,
      'editable' => false,
    ),
    'shop_id' =>
    array (
      'type' => 'table:shop@ome',
      'label' => '来源店铺',
      'width' => 75,
      'editable' => false,
      'in_list' => true,
      'filtertype' => 'normal',
      'filterdefault' => true,
    ),
    'shop_name' =>
    array (
      'type' => 'varchar(32)',
      'required' => true,
      'label' => '店铺名称',
      'comment' => '店铺名称',
      'editable' => false,
      'width' =>140,
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'net_weight' =>
    array (
      'type' => 'money',
      'editable' => false,
      'comment' => '商品重量',
      'label' => '商品重量',
      'in_list' => true,
    ),
    'bnscontent' =>
    array (
      'type' => 'varchar(32)',
      'required' => true,
      'label' => '料号',
      'comment' => '料号',
      'editable' => false,
      'width' =>140,
      'searchtype' => 'has',
      'filtertype' => 'yes',
      'filterdefault' => true,
      'in_list' => true,
      'default_in_list' => true,
      'is_title' => true,
    ),
    'lmfee' =>
    array (
      'type' => 'money',
      'default' => '0',
      'label' => '应收运费',
      'comment' => '应收运费',
      'editable' => false,
      'filtertype' => 'normal',
      'filterdefault' => true,
      'width' =>130,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'almfee' =>
    array (
      'type' => 'money',
      'default' => '0',
      'label' => '调整应收',
      'comment' => '调整应收',
      'editable' => false,
      'filtertype' => 'normal',
      'filterdefault' => true,
      'width' =>130,
      'in_list' => true,
      'default_in_list' => true,
    ),
    'delivery_cost_actual' =>
    array (
      'type' => 'money',
      'editable' => false,
      'comment' => '应付运费',
      'label' => '应付运费',
      'in_list' => true,
    ),
    'adelivery_cost_actual' =>
    array (
      'type' => 'money',
      'editable' => false,
      'comment' => '调整应付',
      'label' => '调整应付',
      'in_list' => true,
    ),
    'number' =>
    array (
      'type' => 'number',
      'editable' => false,
      'comment' => '数量',
      'label' => '数量',
      'in_list' => true,
    ),
    'anet_weight' =>
    array (
      'type' => 'money',
      'editable' => false,
      'comment' => '调整重量',
      'label' => '调整重量',
      'in_list' => true,
    ),
    'anumber' =>
    array (
      'type' => 'number',
      'editable' => false,
      'comment' => '调整数量',
      'label' => '调整数量',
      'in_list' => true,
    ),
    'last_modify' =>
    array (
      'type' => 'last_modify',
      'comment' => '修改时间',
      'label' => '修改时间',
      'in_list' => true,
      'default_in_list' =>true,
    ),
  ),
  'index' =>
     array (
         'ind_id' =>
         array (
             'columns' =>
             array (
                 0 => 'id',
             ),
         ),
   ),
  'comment' => app::get('wms')->_('备货申请行'),
);
